package com.wandian.texas.dao;

import com.wandian.texas.entity.UserInfoEntity;

/**
 * @author long
 * @Create 2012-10-8 上午9:32:03
 * @QQ 108232706
 * @version 1.0
 * @description UserInfoDao
 */
public interface UserInfoDao {
	/**
	 * 根据主键查询用户
	 * 
	 * @param id
	 * @return
	 */
	public UserInfoEntity getUserInfo(int userId);

	public UserInfoEntity getUserGameInfo(int userId);

	/**
	 * 根据用户账号查询用户
	 * 
	 * @param id
	 * @return
	 */
	public UserInfoEntity getUserInfo(String userName);

	public boolean getUserInfo(UserInfoEntity info);

//	public boolean addUserInfo(UserInfoEntity info);

	public boolean updateUserInfo(UserInfoEntity info);

	public boolean exeSql(String sql, int dbType, Object... params);

	public boolean delUserInfo(int userId);

	public boolean delUserInfo(String userName);
}
